const router = require('koa-router')({prefix: "/chatroom"})


// 模拟DB
const room_list = [
    {name: "太秃然了", id: "000001", image: '', desc: "介绍是不存在的"},
    {
        name: "加班是我快乐",
        id: "000002",
        image: "",
        desc: "什么？你竟然不快乐？"
    }]


// ---------------------
router.get('/', async (ctx, next) => {
    ctx.body = {msg: "query room list success", msg_show: "获取房间列表成功", data: room_list, code: 200}
})


router.get('/', async (ctx, next) => {
    ctx.body = {}
})

module.exports = router
